package com.hitqz.robot.driver.dto.robot;

/**
 * @author xupkun
 * @date 2023/8/4
 */
public class MessageRobotDto {


    private Short sn;

    private Integer dataLength;

    private Short cmd;

    private String data;

    private byte[] lastByte;
    private int resetLength;


    public MessageRobotDto(Short sn, Short cmd, String data) {
        this.sn = sn;
        this.cmd = cmd;
        this.data = data;
        this.dataLength = data == null ? 0 : data.length();
    }


    public Short getSn() {
        return sn;
    }

    public void setSn(Short sn) {
        this.sn = sn;
    }

    public Integer getDataLength() {
        return dataLength;
    }

    public void setDataLength(Integer dataLength) {
        this.dataLength = dataLength;
    }

    public Short getCmd() {
        return cmd;
    }

    public void setCmd(Short cmd) {
        this.cmd = cmd;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public byte[] getLastByte() {
        return lastByte;
    }

    public void setLastByte(byte[] lastByte) {
        this.lastByte = lastByte;
    }

    public int getResetLength() {
        return resetLength;
    }

    public void setResetLength(int resetLength) {
        this.resetLength = resetLength;
    }
}
